package FileTransferIRPConstDefs;

/**
 * Generated from IDL union "FileLocation".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class FileLocation
	implements org.omg.CORBA.portable.IDLEntity
{
	private FileTransferIRPConstDefs.LocationChoice discriminator;
	private java.lang.String file_location_directory;
	private java.lang.String file_location_url;

	public FileLocation ()
	{
	}

	public FileTransferIRPConstDefs.LocationChoice discriminator ()
	{
		return discriminator;
	}

	public java.lang.String file_location_directory ()
	{
		if (discriminator != FileTransferIRPConstDefs.LocationChoice.DIRECTORY)
			throw new org.omg.CORBA.BAD_OPERATION();
		return file_location_directory;
	}

	public void file_location_directory (java.lang.String _x)
	{
		discriminator = FileTransferIRPConstDefs.LocationChoice.DIRECTORY;
		file_location_directory = _x;
	}

	public java.lang.String file_location_url ()
	{
		if (discriminator != FileTransferIRPConstDefs.LocationChoice.URL)
			throw new org.omg.CORBA.BAD_OPERATION();
		return file_location_url;
	}

	public void file_location_url (java.lang.String _x)
	{
		discriminator = FileTransferIRPConstDefs.LocationChoice.URL;
		file_location_url = _x;
	}

}
